cmake_minimum_required(VERSION 3.10)
project(webserver)

set(CMAKE_CXX_STANDARD 17)

include_directories(${PROJECT_SOURCE_DIR}/include)

# project_source_dir 指向包含最近一次调用 project() 命令的 CMakeLists.txt 文件的目录
# cmake_source_dir 指向最顶层的 CMakeLists.txt 文件所在的目录，即整个项目的根目录
aux_source_directory(${PROJECT_SOURCE_DIR}/src src_list)

add_executable(webserver ${src_list})